//本地测试双向绑定数据
DZApp.controller("index_new",function($scope,$http){
	
	$http({
		method: 'GET',
		url: '/appserver/manage/pubInformation/PubInformationSelect',
		headers: {
			'Content-Type': 'application/json;charset=utf-8'
		},
		cache: false
	}).success(function(data) {
		console.log(data);
		$scope.mynews = data.data
	});
	
	$scope.baocun = function(){
		
    	$http({
			method: 'POST',
			url: '/appserver/manage/pubInformation/PubInformationAdd',
			data: $.param($scope.Add),
			headers: {
				'Content-Type': 'application/json;charset=utf-8'
			},
			cache: false
		}).success(function(data) {
			$scope.Add = data.data
		});
    	$scope.visible=false;
    };
	
    $scope.shanchu = function(index){
	
    	$http({
			method: 'POST',
			url: '/appserver/manage/pubInformation/PubInformationDel',
			data: $.param({info_id:'',oper_id:''}),
			headers: {
				'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'
			},
			cache: false
		}).success(function(data) {
			console.log(data);
		});

    };
});